package ywpt.service.config;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import ywpt.model.ShebeiType;

public interface ShebeiTypeService {

	public abstract ShebeiType getShebeiTypeById(Long id);

	public abstract int getShebeiTypeCountByCriteria(DetachedCriteria query);

	public abstract List<ShebeiType> getShebeiTypes(
			DetachedCriteria query, int pageSize, int startIndex);

	public abstract String CreateTypeCode();

	public abstract void saveShebeiType(ShebeiType shebeiType);

	public abstract void updateShebeiType(ShebeiType shebeiType);

	public abstract void removeShebeiType(Long id);

	public abstract List<ShebeiType> getShebeiTypes();
	
	public abstract List<ShebeiType> getShebeiTypesByTypeName(String type, int start, int size);
	
	public abstract int getShebeiTypesCountByName(String type);
	
	public abstract List<ShebeiType> getShebeiTypes(DetachedCriteria query);
}
